package com.icloud.system.boot.controller.app;

import com.icloud.common.core.api.CommonResult;
import com.icloud.system.boot.service.SysSettingsService;
import com.icloud.system.boot.vo.SysSettingsVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "前台系统设置接口")
@RequestMapping("/app/sys/settings")
@RequiredArgsConstructor
public class SysSettingsController {
    private final SysSettingsService sysSettingsService;

    @ApiOperation("查询")
    @PostMapping("/query")
    @ResponseBody
    public CommonResult<SysSettingsVo> query(){
        return CommonResult.success(sysSettingsService.get());
    }
}
